<?php 
include("header.tpl.php");
?>
<form action="search.php" method="get">
<select name="catID">
<option value="0">所有类别</option>
<?php 
	foreach ($cats as $cat)
	{
		echo "<option value='".$cat['cid']."'>".$cat['name']."</option>\n";
	}
	
?>
</select>
关键词：<input type='text' name='q' />
<input type="submit" value='搜索' />
</form>
<?php 
include("footer.tpl.php");
?>